package xiaodou.modules.overview.data
{
	public class ContrastData
	{
		private var _firstData:OneDayData;
		private var _secondData:OneDayData;
		
		/**
		 * 发微博的条数增量 
		 * @return 
		 * 
		 */		
		public function get statusCountAdded():Number
		{
			return _secondData.StatusCount - _firstData.StatusCount;
		}
		/**
		 * 微博被转发的次数增量 
		 * @return 
		 * 
		 */
		public function get RepostCountAdded():Number
		{
			return _secondData.RepostCount - _firstData.RepostCount;
		}
		/**
		 * 微博被评论的次数增量 
		 * @return 
		 * 
		 */
		public function get CommentsCountAdded():Number
		{
			return _secondData.CommentsCount - _firstData.CommentsCount;
		}
		/**
		 * 账号粉丝数增量 
		 * @return 
		 * 
		 */
		public function get FollowersCountAdded():Number
		{
			return _secondData.FollowersCount - _firstData.FollowersCount;
		}
		
		/**
		 * 发微博的条数增量百分比 
		 * 
		 */		
		public function get statusCountPer():Number
		{
			return statusCountAdded / _firstData.StatusCount;
		}
		/**
		 * 微博被转发的次数增量 百分比
		 * @return 
		 * 
		 */
		public function get RepostCountPer():Number
		{
			return RepostCountAdded / _firstData.RepostCount;
		}
		/**
		 * 微博被评论的次数增量 百分比
		 * @return 
		 * 
		 */
		public function get CommentsCountPer():Number
		{
			return CommentsCountAdded /_firstData.CommentsCount;
		}
		/**
		 * 账号粉丝数增量 百分比
		 * @return 
		 * 
		 */
		public function get FollowersCountPer():Number
		{
			return FollowersCountAdded / _firstData.FollowersCount;
		}
		
		
		
		public function ContrastData(firstData:OneDayData, secondDate:OneDayData)
		{
			_firstData = firstData;
			_secondData = secondDate;
		}
	}
}